package com.stylefeng.guns.biz.share.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author sundm123
 * @since 2018-08-02
 */
@TableName("t_share")
public class Share extends Model<Share> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 标题
     */
    private String title;
    /**
     * 图片url
     */
    @TableField("image_src")
    private String imageSrc;
    /**
     * 小程序id
     */
    @TableField("app_id")
    private String appId;
    /**
     * 页面路径
     */
    @TableField("app_path")
    private String appPath;
    /**
     * 页面选择
     */
    @TableField("share_page_type")
    private Integer sharePageType;
    /**
     * 是否开启
     */
    @TableField("is_open")
    private Integer isOpen;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * app_id_key
     */
    @TableField("app_id_key")
    private String appIdKey;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImageSrc() {
        return imageSrc;
    }

    public void setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppPath() {
        return appPath;
    }

    public void setAppPath(String appPath) {
        this.appPath = appPath;
    }

    public Integer getSharePageType() {
        return sharePageType;
    }

    public void setSharePageType(Integer sharePageType) {
        this.sharePageType = sharePageType;
    }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAppIdKey() {
		return appIdKey;
	}

	public void setAppIdKey(String appIdKey) {
		this.appIdKey = appIdKey;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Share{" +
        "id=" + id +
        ", title=" + title +
        ", imageSrc=" + imageSrc +
        ", appId=" + appId +
        ", appPath=" + appPath +
        ", sharePageType=" + sharePageType +
        ", isOpen=" + isOpen +
        ", createTime=" + createTime +
        "}";
    }
}
